var UrlParam = {
	parse: function(paramStr) {
		var paramList = paramStr.split('&');
		var param = {};
		paramList.forEach(function(item) {
			var pStr = item.split('=');
			if (pStr.length > 1) {
				var key = pStr[0];
				var value = pStr[1];
				param[key] = value;
			}
		})
		return param;
	},
	stringify: function(param) {
		var paramStr = "";
		for (var i in param) {
			paramStr += i + "=" + param[i] + "&"
		}

		if (paramStr.endsWith('&')) {
			return paramStr.substr(0, paramStr.length - 1)
		}
	}
}